package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-09-21
 * Time: 18:09
 */
public class Dog extends Animal{
    private Dog(String name,int age) {
        super(name,age);
    }

    public void func() {
        System.out.println(this.name + " 正在吃饭！");
    }
}
